<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>监控列表页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/base.css">
	<style type="text/css">
		body{height:100%;width:100%;margin:0;padding:0;}
	</style>
  </head>
  
  <body>
  		<table id="tab_user"  width="100%" border="1" cellpadding="0" cellspacing="0">
			<tr>
			  <th width="10%" nowrap="nowrap">灯编号</th>
			  <th width="10%" nowrap="nowrap">灯地址</th>
			  <th width="6%" nowrap="nowrap">电池电压</th>
			  <th width="6%" nowrap="nowrap">太阳板电压</th>
			  <th width="6%" nowrap="nowrap">温度</th>
			  <th width="6%" nowrap="nowrap" >控制器状态</th>
			  <th width="10%" nowrap="nowrap" >采集时间</th>
			  <th width="6%" nowrap="nowrap" >充电电流</th>
			  <th width="6%" nowrap="nowrap" >放电电流</th>
			  <th width="6%" nowrap="nowrap" >输出功率</th>
			  <th width="6%" nowrap="nowrap" >灯状态</th>
			  <th width="6%" nowrap="nowrap">操作</th>
			</tr>
			<c:forEach items="${lightList }" var="bean">
	    		<tr>
	    			<td>${bean.lightNum }</td>
	    			<td>${bean.addressName }</td>
	    			
	    			<td>${bean.batteryVoltage }</td>
	    			
	    			<td>${bean.solarPanelVoltage }</td>
	    			<td>${bean.temperature }</td>
	    			
	    			<td>${bean.controllerState }</td>
	    			<td>${bean.collectTime }</td>
	    			
	    			<td>${bean.chargeCurrent }</td>
	    			<td>${bean.workCurrent }</td>
	    			
	    			<td>${bean.outputPower }</td>
	    			<td>${bean.lightState }</td>
	    			<td><a>详细</a></td>
	    		</tr>
			</c:forEach>
    	</table>
  </body>
</html>
